package com.swlz.service;

import com.swlz.entity.WebTag;
import com.swlz.exception.CodeException;
import com.swlz.vo.PageVO;

/**
 * <pre>
 * 业务逻辑接口
 * 网站标签
 * ClassName : com.swlz.service.WebTagService
 * Author : swlz
 * E-Mail : 2233875735@qq.com
 * Date : 2020-06-22 06:51:10
 * Version : 1.0
 * Copyright 2020 swlz.top Inc. All rights reserved. 
 * Warning: this content is only for internal circulation of the company. It is forbidden to divulge it or use it for other commercial purposes
 * </pre>
 **/
public interface WebTagService {


	/**
	 * 添加一个新的网站标签
	 * @param webTag
	 * @return
	 * @throws CodeException 500:添加网站标签错误
	 */
	int add(WebTag webTag)throws CodeException;
	
	/**
	 * 根据标签编号修改网站标签
	 * @param webTag
	 * @return
	 * @throws CodeException 501:修改网站标签错误
	 */
	int update(WebTag webTag)throws CodeException;
	
	
	/**
	 * 根据标签编号删除网站标签
	 * @param tagId - 标签编号
	 * @return
	 * @throws CodeException 502:删除网站标签错误
	 */
	int delete(Long tagId)throws CodeException;
	
	/**
	 * 根据标签编号获取网站标签对象
	 * @param tagId - 标签编号
	 * @return
	 * @throws CodeException 503:获取网站标签失败
	 */
	WebTag get(Long tagId)throws CodeException;
	
	/**
	 * 根据模型查找匹配的数据，并进行分页
	 * @param webTag - 匹配数据模型
	 * @param current - 当前页面
	 * @param rowMax - 每页最大值
	 * @return - 分页结果
	 * @throws CodeException 504:获取网站标签分页数据失败
	 */
	PageVO<WebTag> page(WebTag webTag,Integer current,Integer rowMax)throws CodeException;

 
}
